{% extends 'generic/object.html' %}
{% load buttons %}
{% load helpers %}
{% load plugins %}
{% load i18n %}

{% block title %}{% trans "VRF" %} {{ object }}{% endblock %}

{% block content %}
<div class="row">
	<div class="col col-md-6">
      <div class="card">
          <h2 class="card-header">{% trans "VRF" %}</h2>
          <table class="table table-hover attr-table">
              <tr>
                  <th scope="row">{% trans "Route Distinguisher" %}</th>
                  <td>{{ object.rd|placeholder }}</td>
              </tr>
              <tr>
                  <th scope="row">{% trans "Tenant" %}</th>
                  <td>
                      {% if object.tenant.group %}
                          {{ object.tenant.group|linkify }} /
                      {% endif %}
                      {{ object.tenant|linkify|placeholder }}
                  </td>
              </tr>
              <tr>
                  <th scope="row">{% trans "Unique IP Space" %}</th>
                  <td>{% checkmark object.enforce_unique %}</td>
              </tr>
              <tr>
                  <th scope="row">{% trans "Description" %}</th>
                  <td>{{ object.description|placeholder }}</td>
              </tr>
          </table>
      </div>
      {% include 'inc/panels/tags.html' %}
      {% plugin_left_page object %}
  </div>
  <div class="col col-md-6">
    {% include 'inc/panels/related_objects.html' %}
    {% include 'inc/panels/custom_fields.html' %}
    {% include 'inc/panels/comments.html' %}
    {% plugin_right_page object %}
	</div>
</div>
<div class="row">
	<div class="col col-md-6">
    {% include 'inc/panel_table.html' with table=import_targets_table heading="Import Route Targets" %}
  </div>
	<div class="col col-md-6">
    {% include 'inc/panel_table.html' with table=export_targets_table heading="Export Route Targets" %}
  </div>
</div>
<div class="row">
  <div class="col col-md-12">
    {% plugin_full_width_page object %}
  </div>
</div>
{% endblock %}
